docs: Mention g_file_get_basename
authorMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2020 12:33:31 +0000 (07:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2020 16:00:32 +0000 (11:00 -0500)
Mention g_file_get_basename in the migration guide section
about GtkFileChooser api changes.

docs/reference/gtk/migrating-3to4.md

index 7a70e21bc017a1e937cf5c049108960dd9b3f618..e3975d85175df642eeccfef3e8d89c641a0785fa 100644 (file)
@@ -1080,12 +1080,12 @@ gtk_icon_paintable_get_icon_name() and set the icon name on a #GtkImage.
 
 ### Update to GtkFileChooser API changes
 
-GtkFileChooser moved to a GFile-based API. If you need to convert a
-path or a URI, use g_file_new_for_path(), g_file_new_for_commandline_arg(),
-or g_file_new_for_uri(); similarly, if you need to get a path or a URI
-from a GFile, use g_file_get_path(), or g_file_get_uri(). With the
-removal or path and URI-based functions, the "local-only" property has
-been removed; GFile can be used to access non-local as well as local
+GtkFileChooser moved to a GFile-based API. If you need to convert a path
+or a URI, use g_file_new_for_path(), g_file_new_for_commandline_arg(),
+or g_file_new_for_uri(); similarly, if you need to get a path, name or URI
+from a GFile, use g_file_get_path(), g_file_get_basename() or g_file_get_uri().
+With the removal or path and URI-based functions, the "local-only" property
+has been removed; GFile can be used to access non-local as well as local
 resources.
 
 The GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER action has been removed. Use